home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Games / Connect4 / source / window / mainwindow.c < prev    next >
Encoding:
Text File  |  2001-04-05  |  3.2 KB  |  75 lines

  1. SubWindow, mainwindow = WindowObject,
  2.     MUIA_Window_Title, "Connect 4",
  3.     MUIA_Window_ID   , MAKE_ID('C','O','N','4'),
  4.     MUIA_Window_Width , MUIV_Window_Width_Screen(50),
  5.     MUIA_Window_Height, MUIV_Window_Height_Screen(50),
  6.     MUIA_Window_ScreenTitle, "Connect 4",
  7.     MUIA_Window_Menustrip, strip = MUI_MakeObject(MUIO_MenustripNM, connect4menu, 0),
  8.  
  9.     WindowContents,
  10.         VGroup,
  11.             Child, HGroup,
  12.                 Child, RectangleObject,
  13.                     MUIA_HorizWeight, 50,
  14.                 End,
  15.                 Child, redlamp = LampObject,
  16.                           MUIA_Lamp_Type, MUIV_Lamp_Type_Huge,    // red player goes first
  17.                           MUIA_Lamp_Red,   0xffffffff,
  18.                           MUIA_Lamp_Green, 0,                     // Red
  19.                           MUIA_Lamp_Blue,  0,
  20.                 End,
  21.                 Child, ply1name = TextObject,
  22.                           MUIA_Text_Contents, default_player_name[0],
  23.                           MUIA_Frame, MUIV_Frame_Text,
  24.                           MUIA_Background, MUII_TextBack,
  25.                 End,
  26.                 Child, TextObject,
  27.                           MUIA_Text_Contents, " vs ",
  28.                           MUIA_Text_SetMax, TRUE,
  29.                 End,
  30.                 Child, ply2name = TextObject,
  31.                           MUIA_Text_Contents, default_player_name[1],
  32.                           MUIA_Frame, MUIV_Frame_Text,
  33.                           MUIA_Background, MUII_TextBack,
  34.                 End,
  35.                 Child, yellowlamp = LampObject,
  36.                           MUIA_Lamp_Type, MUIV_Lamp_Type_Huge,
  37.                           MUIA_Lamp_Red,   0xffffffff,
  38.                           MUIA_Lamp_Green, 0xffffffff,            // Yellow
  39.                           MUIA_Lamp_Blue,  0,
  40.                 End,
  41.                 Child, RectangleObject,
  42.                     MUIA_HorizWeight, 50,
  43.                 End,
  44.             End,
  45.             Child, board = NewObject(gameboardmcc->mcc_Class, NULL,
  46.                     MUIA_FixWidth,              gb_width,
  47.                     MUIA_FixHeight,             gb_height,
  48.                     MUIA_Bitmap_Width,          gb_width,
  49.                     MUIA_Bitmap_Height,         gb_height,
  50.                     MUIA_Bitmap_SourceColors,   gb_colours,
  51.                     MUIA_Bitmap_Precision,      PRECISION_IMAGE,
  52.                     MUIA_Bitmap_UseFriend,      TRUE,
  53.                     MUIA_Bodychunk_Depth,       gb_colourdepth,
  54.                     MUIA_Bodychunk_Compression, gb_compression,
  55.                     MUIA_Bodychunk_Body,        gb_body,
  56.             End,
  57.             /*Child, HGroup,
  58.                 Child, TextObject,
  59.                     MUIA_Text_Contents, "Go Online",
  60.                     MUIA_Frame, MUIV_Frame_Button,
  61.                     MUIA_InputMode, MUIV_InputMode_RelVerify,
  62.                     MUIA_Background, MUII_ButtonBack,
  63.                 End,
  64.                 Child, RectangleObject,
  65.                     MUIA_HorizWeight, 200,
  66.                 End,
  67.                 Child, lagometer = LevelmeterObject,
  68.                     MUIA_Levelmeter_Label, "Net Lag",
  69.                     // MUIA_Disabled won't work here!
  70.                 End,
  71.             End,*/
  72.         End,
  73. End,
  74.  
  75.